import QtQuick 2.12
import QtQuick.Window 2.12

Window {
    visible: true
    width: 640
    height: 480
    Image {
        source: "assets/background.png"
        anchors.fill: parent
        Image {
            x: 40
            y: 80
            source: "assets/rocket.png"
//            NumberAnimation on x {
//                to: 240
//                duration: 4000
//                loops: Animation.Infinite
//            }
//            RotationAnimation on rotation {
//                to: 360
//                duration: 4000
//                loops: Animation.Infinite
//            }
            NumberAnimation on y {
                to: -480
                duration: 4000
                loops: Animation.Infinite
            }
        }
    }
}

